import request from '@/utils/request'

export function loadAll(data) {
	return request({
		url: '/product',
		method: 'post',
		data
	})
}

export function update(data) {
	return request({
		url: '/product',
		method: 'put',
		data
	})
}

export function delProduct(data) {
	return request({
		url: '/product/'+data,
		method: 'delete',
	})
}

export function delProducts(data) {
	return request({
		url: '/product/delMany',
		method: 'delete',
		data
	})
}
